import React from 'react'
import {HashRouter as Router , Route , Switch} from 'react-router-dom'
import { createBrowserHistory } from "history";
import Login from './LoginForm.js'
import Home from "./Home.js";

export default class MyRoute extends React.Component{
    render(){
        return(
            <Router history={createBrowserHistory()}>
                <Switch>
                   <Route exact path="/"> <Login/></Route>
                   <Route path="/mainpage"> <Home/></Route>
                </Switch>
            </Router>
        )
    }
}